<header id="topbar" class="affix">
    <div class="topbar-left">
        <ol class="breadcrumb">
            <li class="crumb-active">
                <a href="<%= window.location.href %>">自助充值详情</a>
            </li>
            <li class="crumb-link">
                <a href="#op/recharge/">自助充值管理</a>
            </li>
            <li class="crumb-trail">编辑</li>
        </ol>
    </div>
    <div class="pull-right">
        <a href="javascript:;" class="btn btn-primary btn-sm light fw600 ml10" id="save"><span class="fa fa-save"></span>保存</a>
    </div>
</header>
<section id="content">
    <div class="panel">
        <div class="panel-heading">
            <span class="panel-icon"><i class="fa fa-gear text-primary"></i>
            </span>
            <span class="panel-title">参数设置</span>
        </div>
        <div class="panel-body">
            <form class="form-horizontal" id="content-form">
                <div class="form-group">
                    <label for="inputUid" class="col-md-1 control-label">用户ID:</label>
                    <div class="col-md-9">
                        <input type="number" id="inputUid" class="form-control" value="" placeholder="充值用户ID..." data-field="user_id" required>
                    </div>
                </div>
                <div class="form-group">
                    <label for="inputRechargeType" class="col-md-1 control-label">类型:</label>
                    <div class="col-md-1">
                        <select class="form-control" id="inputRechargeType" data-field="recharge_type" data-type="int">
                            <% _.each(RECHARGE_TYPE, function(v, k){ %>
                                <option value="<%= k %>" selected ><%= v %></option>
                            <% }) %>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label for="inputRechargeWechat" class="col-md-1 control-label">收款微信号:</label>
                    <div class="col-md-1">
                        <select class="form-control" id="inputRechargeWechat" data-type="text">
                            <% _.each(recharge_wechats, function(k){ %>
                                <option value="<%= k.wechat_no %>" selected ><%= k.name %>(<%= k.wechat_no %>)</option>
                            <% }) %>
                        </select>
                    </div>
                </div>
            </form>
        </div>
    </div>

    <div class="panel" id="wechatContent">
        <div class="panel-heading">
            <span class="panel-icon"><i class="fa fa-gear text-primary"></i>
            </span>
            <span class="panel-title">微信打款信息</span>
        </div>
        <div class="panel-body">
            <form id="order-form" class="form-horizontal" role="form">
                <div class="form-group">
                    <label class="col-md-1 control-label">微信昵称：</label>
                    <div class="col-md-4">
                        <input type="text" id="inputWechatName" class="form-control" value="" placeholder="用户微信昵称..." required>
                    </div>
                    <label class="col-md-1 control-label">微信号：</label>
                    <div class="col-md-4">
                        <input type="text" id="inputWechatNo" class="form-control" value="" placeholder="用户微信号..." required>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-md-1 control-label">订单金额：</label>
                    <div class="col-md-4">
                        <input type="number" id="inputWechatPrice" class="form-control" value="" placeholder="订单金额..." required>
                    </div>
                    <label class="col-md-1 control-label">打款时间：</label>
                    <div class="col-md-4">
                        <input id="inputWechatTime" type="text" class="form-control date-box" value="" required>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-md-1 control-label">订单备注：</label>
                    <div class="col-md-9">
                        <input type="text" id="inputWechatRemark" class="form-control" value="" placeholder="备注..." required>
                    </div>
                </div>
            </form>
        </div>
    </div>
</section>
